using Microsoft.EntityFrameworkCore;
using aspnetcore.Models;

namespace aspnetcore.Models
{
    public class HSContext : DbContext
    {
        public HSContext(DbContextOptions<HSContext> options)
        : base(options) { }

        public virtual DbSet<SysConfig> SysConfig { get; set; }
        
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<SysConfig>().ToTable("sys_config").HasKey(d => d.Id);
        }
    }
}